package com.yingxin.yxerp.service.app;


import com.yingxin.yx.framework.unified.dispose.annotation.EnableGlobalDispose;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author fanchao
 */
@EnableScheduling
@SpringBootApplication(scanBasePackages = {"com.yingxin"}, exclude = DataSourceAutoConfiguration.class)
// same as @Configuration
// @EnableAutoConfiguration
@EnableTransactionManagement(order = 800)
@MapperScan(basePackages = {"com.yingxin.**.mapper"})
@EnableDiscoveryClient
@EnableGlobalDispose
public class MobileErpApplicationBootstrap {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MobileErpApplicationBootstrap.class, args);
    }

}